1
ปรัชญาแบบมาร์กดาวน์เป็นหลัก และหลักการทางสถาปัตยกรรมหลัก
EvoClass-AI007Lesson 1
00:00

รากฐานของ OpenClaw

1. ปรัชญาแบบมาร์กดาวน์เป็นหลัก

OpenClaw มองว่าเอกสารที่มนุษย์อ่านได้เป็นแหล่งข้อมูลความจริงที่แท้จริง แตกต่างจากระบบที่ซ่อนตรรกะไว้ในฐานข้อมูล จิตวิญญาณของเอเจนต์ถูกกำหนดไว้ในไฟล์ข้อความ ทำให้มั่นใจในเรื่อง ความโปร่งใส และการควบคุมเวอร์ชันที่ง่าย การควบคุมเวอร์ชัน.

  • SOUL.md: กำหนดบุคลิกภาพและขอบเขตจริยธรรม
  • AGENTS.md: ระบุลำดับขั้นตอนการพัฒนาวิศวกรรม
  • MEMORY.md: เก็บข้อมูลความจริงระยะยาวและข้อมูลความชอบ

2. ไม่ขึ้นกับโมเดล และเป็นอัตโนมัติ

ระบบการทำงานกลางของเอเจนต์อนุญาตให้สลับโมเดลภาษา (Claude, GPT, แบบท้องถิ่น) โดยไม่ต้องแก้ไขตรรกะเดิม ซึ่งเอเจนต์อัตโนมัติทำงานตลอด 24 ชั่วโมงผ่าน HEARTBEAT.md ตัวจัดตารางเวลา

3. ความน่าเชื่อถือและความถูกต้องของข้อมูล

เพื่อป้องกัน การเสียหายของสถานะ ในสภาพแวดล้อมที่มีการเข้าถึงพร้อมกันจำนวนมาก ระบบ OpenClaw ใช้ การแยกเซสชัน ผ่านแถวคิวการแยกเซสชัน กระบวนการดึงข้อมูลจะถูกจัดการโดย RAG แบบเน้นพื้นที่ท้องถิ่นเป็นหลัก โครงสร้างที่ใช้ภาพรวมเชิงความหมาย (Semantic Snapshots)

กำหนดค่า: openclaw.json
{ "global": { "port": 18789, "identity": "./config/SOUL.md", "env_injection": true }, "security": { "firewall": "strict", "rce_protection": true } }
Type a command...
Question 1
Why does OpenClaw prioritize a "Markdown-First" approach?
To increase the execution speed of the LLM.
To ensure transparency and human-readability.
To replace the need for JSON files entirely.
Question 2
What prevents "State Corruption" during simultaneous user interactions?
Local-First RAG
Semantic Snapshots
Session Isolation via Lane Queues
Challenge: The Debugger
Diagnose the missing agent behavior.
Problem: An agent has been deployed, but it is responding with a generic personality instead of its assigned role, and it cannot recall data from yesterday's session.
Analysis
Which files or components are likely misconfigured?
Diagnosis:
1. Persona Issue: Check SOUL.md and ensure it is correctly referenced in openclaw.json.
2. Memory Issue: Ensure MEMORY.md is writable and the Local-First RAG system is successfully creating Semantic Snapshots.